package com.kl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_contacts")
@ApiModel(value="TbContacts对象")
public class TbContacts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id自增")
    @TableId(value = "tb_id", type = IdType.AUTO)
    private Long tbId;

    @ApiModelProperty(value = "联系人名字")
    private String tbContactsname;

    @ApiModelProperty(value = "联系人电话")
    private String tbPhone;

    @ApiModelProperty(value = "联系人固定电话")
    private String tbLandline;

    @ApiModelProperty(value = "县")
    private Integer county;

    @ApiModelProperty(value = "市")
    private Integer city;

    @ApiModelProperty(value = "省")
    private Integer province;

    @ApiModelProperty(value = "联系人详细地址(街道门牌号)")
    private String tbAddressadd;

    @ApiModelProperty(value = "添加时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date tbStarttime;

    @ApiModelProperty(value = "登录用户,username")
    private String tbUsername;

    @ApiModelProperty(value = "状态 0.无 1.默认 2.逻辑删除")
    private Integer status;


}
